using System;
using System.Windows.Data;

namespace ImageLib.Shell.ValueConverter
{
    class NotBoolConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value != null && value is bool) { return !(bool)value; }

            return false;
        }
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value != null && value is bool) { return !(bool)value; }

            return false;
        }
    }
}
